Maya Python - how to iterate through list and attach objects